package com.woniuxy.thread.job;

public class PrintLetterThread implements Runnable {
	private Resource resource;

	public PrintLetterThread(Resource resource) {
		this.resource = resource;
	}

	@Override
	public void run() {
		for (int i = 0; i < 26; i++) {
			try {
				resource.printLetter();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

}
